# Load the required package
library(R.matlab)

# Load the ContractSpecs.mat file
ContractSpecs <- readMat("./Code/Data/ContractSpecs.mat")

# Save the ContractSpecs object as a .RData file
save(ContractSpecs, file = "./Code/Data/Contracts.RData")

# Load the LogReturns.mat file
LogReturns <- readMat("./Code/Data/LogReturns.mat")

# Save the LogReturns object as a .RData file
save(LogReturns, file = "./Code/Data/LogR.RData")